package com.duanjw.springcloud.nacos.client.web;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试 controller
 *
 * @author duanjw
 */
@RestController
public class TestController {
    /**
     * 测试
     * curl localhost:7001/echo/ZhangSan
     *
     * @param string
     * @return
     */
    @GetMapping(value = "/echo/{string}")
    public String echo(@PathVariable String string) {
        return "Hello " + string;
    }
}
